using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using QLKS.DTO;
using QLKS.DAO;

namespace QLKS.BUS
{
    public class PhieuThue_BUS
    {
        PhieuThue_DAO obj = new PhieuThue_DAO();

        //lay so phieu thue moi
        public int GetSoPhieuThue()
        {
            return obj.GetSoPhieuThue();
        }

        //lay danh sach phieu thue (dung dataSet)
        public DataSet GetPhieuThue()
        {
            return obj.GetPhieuThue();
        }

        //lay phieu thue cua khach hang
        public DataTable GetPTByKH(PhieuThuePhong_DTO pt)
        {
            return obj.GetPTByKH(pt);
        }

        //cap nhat trang thai phieu thue
        public Boolean UPDATE_TTPhieuThue(PhieuThuePhong_DTO pt)
        {
            return obj.UPDATE_TTPhieuThue(pt);
        }

        //them phieu thue
        public Boolean INSERT_PhieuThue(PhieuThuePhong_DTO pt)
        {
            return obj.INSERT_PhieuThue(pt);
        }

        //cap nhat phieu thue bang dataset
        public Boolean UPDATE_PhieuThue(PhieuThuePhong_DTO pt)
        {
            return obj.UPDATE_PhieuThue(pt);
        }

        //xoa phieu thue
        public Boolean DELETE_PhieuThue(PhieuThuePhong_DTO pt)
        {
            return obj.DELETE_PhieuThue(pt);
        }
    }
}
